package com.vehicle.auto.click.test;

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class LaunchIE {
    public static void main(String[] args) {
        System.out.println("start selenium");
        System.setProperty("webdriver.ie.driver", "D:\\yankong_tool\\IEDriverServer1.exe");
        System.setProperty("webdriver.ie.bin", "C:\\Program Files\\Internet Explorer\\iexplore.exe");
        WebDriver driver = new InternetExplorerDriver();
        driver.manage().window().maximize();
        driver.manage().timeouts().implicitlyWait(8L, TimeUnit.SECONDS);
        driver.get("http://www.baidu.com/");
        System.out.println("当前打开页面的标题是：" + driver.getTitle());
        driver.close();
        System.out.println("end selenium");
    }
}
